保险商户预约保险自动续费
保险行业商户再进行委托代扣费前,需要提前在微信支付系统中预约保险自动续费,预约成功后方可在约定时间内扣费。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| policy_period_id | number | 保单的扣费周期编号 |
| contract_id | string | 委托代扣协议ID |
| json | object | 声明请求的JSON数据结构 |
| appid | string | 应用ID |
| scheduled_amount | object | 预约扣费金额信息 |
| total | number | 金额 |
| currency | string | 货币类型 |
php
$instance->v3->papay->insurancePay->policyPeriods->contractId->_contract_id_->policyPeriodId->_policy_period_id_->schedule->postAsync([
'policy_period_id' => '1',
'contract_id' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'scheduled_amount' => [
'total' => 1,
'currency' => 'CNY',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}/schedule')->postAsync([
'policy_period_id' => '1',
'contract_id' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'scheduled_amount' => [
'total' => 1,
'currency' => 'CNY',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}/schedule']->postAsync([
'policy_period_id' => '1',
'contract_id' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'scheduled_amount' => [
'total' => 1,
'currency' => 'CNY',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->papay->insurancePay->policyPeriods->contractId->_contract_id_->policyPeriodId->_policy_period_id_->schedule->post([
'policy_period_id' => '1',
'contract_id' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'scheduled_amount' => [
'total' => 1,
'currency' => 'CNY',
],
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}/schedule')->post([
'policy_period_id' => '1',
'contract_id' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'scheduled_amount' => [
'total' => 1,
'currency' => 'CNY',
],
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}/schedule']->post([
'policy_period_id' => '1',
'contract_id' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'scheduled_amount' => [
'total' => 1,
'currency' => 'CNY',
],
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| policy_period_id | number | 保单的扣费周期编号 |
| policy_period_state | string | 当前扣费周期的状态 |
| deduct_start_date | string | 可扣费开始日期 |
| deduct_end_date | string | 可扣费结束日期 |
| scheduled_amount | object | 已预约的扣费金额信息 |
| total | number | 金额 |
| currency | string | 货币类型 |
| deduct_amount | object | 实际扣费金额 |
| total | number | 金额 |
| currency | string | 货币类型 |
| deduct_date | string | 实际扣费的日期 |
参阅 官方文档